Skip to content

[breaking] Use element2 implementations everywhere, deprecate API with "2". #750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

davidmorgan
Copy link
Contributor

This is a breaking change: if we want to release it as an intermediate state, it will need a major version bump.

We will use it as an intermediate state in google3: with this rolled in, we can migrate users package by package onto the final API. It's not clear if we'll release it externally.

@davidmorgan davidmorgan force-pushed the analyzer-element2-copy branch 2 times, most recently from 3045e21 to 7a53728 Compare April 3, 2025 14:34
@davidmorgan davidmorgan force-pushed the analyzer-element2-copy branch from 7a53728 to a620a32 Compare April 3, 2025 15:04
@davidmorgan davidmorgan requested review from scheglov and kevmoo April 3, 2025 15:17
@davidmorgan davidmorgan merged commit 957e4cb into dart-lang:analyzer-element2 Apr 3, 2025
10 checks passed
@davidmorgan davidmorgan deleted the analyzer-element2-copy branch April 3, 2025 16:21
stereotype441 added a commit to stereotype441/drift that referenced this pull request Apr 8, 2025
When a version of the `source_gen` package is published that works
with the new analyzer element model, it will not use `2` suffixes on
the methods `spanForElement`, `isAssignableFrom`, and
`isExactly`. (See
dart-lang/source_gen#750). Accordingly,
`drift_dev` need to refer to these methods without the `2` suffix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants